///*
// * Copyright 2020 www.mytijian.com All right reserved. This software is the
// * confidential and proprietary information of www.mytijian.com ("Confidential
// * Information"). You shall not disclose such Confidential Information and shall
// * use it only in accordance with the terms of the license agreement you entered
// * into with www.mytijian.com.
// */
//package com.mytijian.task.selector;
//
//import com.mytijian.task.repository.database.repository.MysqlTaskRepository;
//import org.apache.ibatis.io.Resources;
//import org.apache.ibatis.session.SqlSessionFactory;
//import org.apache.ibatis.session.SqlSessionFactoryBuilder;
//import org.mybatis.spring.SqlSessionTemplate;
//
//import java.io.IOException;
//import java.io.InputStream;
//
//public class MybatisClient {
//    public static void main(String[] args) throws IOException {
//        // 指定全局配置文件
//        String resource = "mybatis-config.xml";
//        // 读取配置文件
//        InputStream inputStream = null;
//        try {
//            inputStream = Resources.getResourceAsStream(resource);
//        } catch (IOException e) {
//            e.printStackTrace();
//        }
//        // 构建sqlSessionFactory
//        SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(inputStream);
//        SqlSessionTemplate sqlSessionTemplate = new SqlSessionTemplate(sqlSessionFactory);
//        MysqlTaskRepository mysqlTaskRepository = new MysqlTaskRepository();
//    }
//}
//
